-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove ChannelId from YTS Videos #179
base: year-ap
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I remember seeing, only "Groups_InsertOrphanItems" has some exception handling, on the others the exceptions are sent to a higher level. Is this desirable? Is there any job that could continue even if an exception is raised? Or maybe could we insert some kind of retry in case of some exceptions?
namespace DataLakeModels.Models.YouTube.Studio { | ||
|
||
public class Group : IEquatable<Group> { | ||
public Group() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to have this line?
public string ChannelId { get; set; } | ||
public string Title { get; set; } | ||
public DateTime RegistrationDate { get; set; } | ||
public DateTime? UpdateDate { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to have a null UpdateDate? Couldn't we just set to the RegistrationDate?
public string Title { get; set; } | ||
public DateTime RegistrationDate { get; set; } | ||
public DateTime? UpdateDate { get; set; } | ||
public List<Item> Items { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this list accessible in the database? Is this created on the database?
dirs.Add(path); | ||
} | ||
foreach (var dir in dirs) { | ||
Console.WriteLine($"Now in {dir}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we need this every time we look for services?
|
||
/* API METHODS */ | ||
|
||
protected void ReportError(Errors e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a similar class on the other YouTube fetcher? If not, should we add it?
RequestId = {e.RequestId} | ||
"); | ||
Logger.Error("For more information, see https://googleapis.dev/dotnet/Google.Apis.YouTubeAnalytics.v2/latest/api/Google.Apis.YouTubeAnalytics.v2.Data.Errors.html"); | ||
throw new Exception("Response to API request contains an error. See message above."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This exception is only caught outisde of this job, right? Is this desirable? Should there be error handling inside of the job before leaving it with an error?
1660ca5
to
4ac1cd4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Were my comments addressed somewhere? I don't remember if we discussed about it anywhere else
Please consider PR #174 before assessing this
As we proceeded with the implementation of CSV Data Syncing on Year-Ap, it became clear that the column "ChannelId" was unnecessary (in fact detrimental) in this table